package org.xteam.sled.semantic.exp;

import org.xteam.sled.model.AbsoluteField;

public class ExpAField extends Exp {
	
	private AbsoluteField field;

	public ExpAField(AbsoluteField f) {
		this.field = f;
	}
	
	public AbsoluteField field() {
		return field;
	}
	
	public boolean equals(Object o) {
		return (o instanceof ExpAField)
			&& ((ExpAField)o).field.equals(field);
	}

	@Override
	public void visit(IExpVisitor visitor) {
		throw new RuntimeException();
	}
	
	@Override
	public String toString() {
		return field.toString();
	}

}
